const mongoose = require('mongoose')
const {Schema} = mongoose

//员工数据结构
const employeeSchema = new Schema({
    name: String,
    sex: String,
    birthday: Number,
    cid: String,
    phone: String,
    photo: String,
    joinTime: Number
})
//根据schema创建model
const EmployeeModel=mongoose.model('Employee', employeeSchema);
//导出员工model
module.exports=EmployeeModel